package com.service;

import com.mapper.ItemGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ItemGroupService {
    @Autowired
    private ItemGroupMapper itemGroupMapper;

    public Long getNextIndex(){
        return itemGroupMapper.getCurrentIndex()+1;
    }

    public boolean insertItemGroup(Long GroupId,Long ItemId,int Quantity){
        return itemGroupMapper.insertItemGroup(GroupId,ItemId,Quantity);
    }

}
